package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.TalentDeclarationInfo;
import org.dromara.system.domain.vo.TalentDeclarationInfoVo;

/**
 * 人才申报信息Mapper接口
 *
 * @author 毛宁川
 * @date 2025-09-05
 */
@Mapper
public interface TalentDeclarationInfoMapper extends BaseMapperPlus<TalentDeclarationInfo, TalentDeclarationInfoVo> {


    @DataPermission({
        @DataColumn(key = "deptName", value = "manage_work_id"),
    })
    default Page<TalentDeclarationInfoVo> selectPageDeclarationInfoList(Page<TalentDeclarationInfo> page, Wrapper<TalentDeclarationInfo> queryWrapper) {
        return this.selectVoPage(page, queryWrapper);
    }
}
